package com.study.factory.impl;

import com.study.factory.Payment;

/**
 * 微信支付实现类
 */
public class WechatPay implements Payment {
    @Override
    public Integer pay(Integer amount) {
        System.out.println("微信支付" + amount);
        return 0;
    }

    @Override
    public String getPaymentName() {
        return "微信支付";
    }
}
